package com.hduong.springcloud.service.impl;

import com.hduong.springcloud.service.PaymentFeignService;
import entities.CommonResult;
import entities.Payment;
import org.springframework.stereotype.Component;

/**
 * Created by dudu on 2020/3/20.
 */
@Component//注入到容器中
public class PaymentFeignServiceImpl implements PaymentFeignService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult(444, "服务降级返回", new Payment(id, "error"));
    }
}
